<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="author" content="Syed Ekramuddin Emon | ekram.syed@gmail.com">
	<meta name="language" content="en" />

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="images/favicon.ico">
    <link rel="apple-touch-icon" href="images/bootstrap-apple-57x57.png">
    <link rel="apple-touch-icon" sizes="72x72" href="images/bootstrap-apple-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="images/bootstrap-apple-114x114.png">

    <link href="<?php echo Yii::app()->request->baseUrl; ?>/themes/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo Yii::app()->request->baseUrl; ?>/themes/bootstrap/bootstrap.form.extend.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
        }
        .hero-unit h1 {
            font-size: 40px; line-height: 1.19em
        }
        p{
            line-height: 22px;
        }
        .hero-unit p {
            margin: 20px 0;
        }
        blockquote {
            line-height: 22px; font-style: italic; border-left-color: #FF9900;
        }
        li.buttons {
            border-top: 1px dotted #DDDDDD;
        }
        .span-one-third h2{
            font-size: 160%;
            font-weight: 400;
            margin: 0 0 5px; border-bottom: 1px dotted #eee;
        }
        footer{
            border-top: 2px groove #ccc;
        }
        .bootform form li div.errorMessage {
            color: red; font-size: 11px
        }
        .bootform form li.section h3 {
            font-size: 20px; color: #0066cc;
        }
        .hint {
            font-size: 11px; font-family: "Lucida Grande",Tahoma,Arial,sans-serif
        }
        .field.text.medium.picker.hasDatepicker {
            background: url(images/calendar.png) no-repeat right center;
        }
        #sidebar ul.well {
            list-style-type: none;margin: 10px 0; padding: 10px;
        }
        #sidebar ul.well li {
            display: inline-block;
        }
        .bootform form.wufoo {
            padding: 0; margin: 0
        }
    </style>
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>


<body>

<div class="topbar">
    <div class="fill">
        <div class="container">
            <?php echo CHtml::link(CHtml::encode(Yii::app()->name),array('site/index'), array('class' => 'brand')); ?>
            <?php $this->widget('zii.widgets.CMenu',array(
            'items'=>array(
                array('label'=>'Home', 'url'=>array('/site/index'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Dashboard', 'url'=>array('/dashboard/index'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Members', 'url'=>array('/user/index'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Banks', 'url'=>array('/bank/index'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Branches', 'url'=>array('/bankBranch/index'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Report', 'url'=>array('/report/index'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Member Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Become a Member', 'url'=>array('/user/create'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Contact', 'url'=>array('/site/contact')),
                array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
            ),
        )); ?>
        </div>
    </div>
</div>

<div class="container">

    <?php echo $content; ?>

    <footer>
        <p>Powered by <a href="http://metaacts.com">MetaActs</a></p>
    </footer>

</div> <!-- /container -->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bootstrap/js/bootstrap.form.extend.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/themes/bootstrap/js/bootstrap.js"></script>
</body>
</html>